package com.briup.mybatis01code.entity.extend;

import com.briup.mybatis01code.entity.Book;
import com.briup.mybatis01code.entity.Category;
import lombok.Data;

import java.util.List;

@Data
public class CategoryExtend extends Category {
    List<Category> categories;
    List<Book> books;

    @Override
    public String toString() {
        return super.toString()+"CategoryExtend{" +
                "categories=" + categories +
                ", books=" + books +
                '}';
    }
}
